import request from '@/utils/request'

// 预估返利page
export function getList(form, pageSize, currentPage) {
  const data = {
    param: form,
    pageSize: pageSize,
    pageNo: currentPage
  }
  return request.post('/sq/ygfl/page', data)
}
// 保存
export function save(form = {}) {
  return request.post(`/sq/ygfl/save`, form)
}
// 更新
export function update(form = {}) {
  return request.put(`/sq/ygfl/save`, form)
}
// 删除
export function deleteById(id) {
  return request.delete(`/sq/ygfl/del/${id}`)
}
// 详情
export function details(id) {
  return request.get(`/sq/ygfl/findById/${id}`)
}
